/*
@author: user
@date: 2022/6/20 15:26
@Version: 1.0
@last modifined by : 2022/6/20 15:26
@last Modifined time : 2022/6/20 15:26
*/

import React, { useContext } from 'react';
import { themeColor } from '@B/themesConfig/themeColor';

const ThemeContext = React.createContext(
  themeColor.default // 默认值
);

const getThemeContext = () => useContext(ThemeContext);

export {
  ThemeContext,
  getThemeContext,
};
